<extend name="Public:base" />
<block name="title">联系我们</block>
<block name="loading"><div class="bx-loading"><span>Loading...</span></div></block>
<block name="body">
		<div id="slides" style="display:block;">
			<div class="slides-container">
				<li>
					<img alt="{$pageView.shorttitle}" src="{$pageView.thumb}">
					<div class="contact-content">
						<dl class="view-main hide">
							<dt>{$pageView.shorttitle}<span>{$pageView.description}</span></dt>
							<dd><span>电 话:</span> {$webInfo.phone}</dd>
							<dd><span>地 址:</span> {$webInfo.address}</dd>
							<dd><span>邮 箱:</span> <a href="mailto:{$webInfo.email}">{$webInfo.email}</a></dd>
							<dd><span>网 址:</span> www.jimusheji.cn</dd>
						</dl>
						<div class="message">
							<form name="message" id="message" method="post" action="{:U('Contact/index')}">
								<label><span>您的姓名：</span><input type="text" name="name" id="name" datatype="zh1-6" errormsg="请输入正确的姓名！" class="input_txt required" /></label>
								<label><span>联系邮箱: </span><input type="text" name="email" id="email" datatype="e" errormsg="邮箱格式不对！" ignore="ignore" class="input_txt email required"  /></label>
								<label><span>联系电话：</span><input type="text" name="phone" id="phone" datatype="phone" errormsg="电话号码格式不对！" nullmsg="电话与邮箱至少填写一项！" class="input_txt phone required"  /></label>
								<label><span>留言内容：</span><textarea name="details" id="details" datatype="s" class="textarea required"></textarea></label>
								<div class="submit"> 
									<p class="tip"><em id="tip"></em></p>
									<input type="submit" id="send" value="提交留言 " />
								</div>
							</form>
						</div>
					</div>
				</li>
			</div>
		</div>
</block>
<block name="js">
	<script>
		$(function(){
			$('#slides').superslides({
				hashchange: true,
				play: 6000
			});
			$('#slides').on('mouseenter', function(){
				$(this).superslides('stop');
			});
			$('#slides').on('mouseleave', function(){
				$(this).superslides('start');
			});
			var loaded =0;
			$('.slides-container li img').each(function(){
				++loaded;
				if(loaded===$(this).length){
					setTimeout(function(){
						$("#hd").slideDown(1000);
					},1500);
					$('.bx-loading').hide();
				}
			});

		});
  </script> 
</block>